﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Farming.EntityFarmeworkCore.Migrations
{
    public partial class _2024092305 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "HusbandryMessages",
                columns: table => new
                {
                    HusbandryId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    HusbandryName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HusbandrySource = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HusbandryDay = table.Column<int>(type: "int", nullable: false),
                    HusbandryBrand = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HusbandryPerson = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HusbandryTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_HusbandryMessages", x => x.HusbandryId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "HusbandryMessages");

          
        }
    }
}
